package com.cskaoyan.vo.market;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @program: mall
 * @description:
 * @author: Mr.Mengmeng
 * @create: 2021-04-10 11:12
 **/
@Data
public class OrderListDataVo {

    /**
     * total : 37
     * items : [{"id":37,"userId":1,"orderSn":"20210410822662","orderStatus":103,"consignee":"小明","mobile":"18845678918","address":"辽宁省 沈阳市 皇姑区 巴啦啦小能量","message":"","goodsPrice":99,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":99,"actualPrice":99,"comments":0,"endTime":"2021-04-10 10:55:52","addTime":"2021-04-10 10:10:32","updateTime":"2021-04-10 10:55:52","deleted":false},{"id":36,"userId":1,"orderSn":"20210407528102","orderStatus":103,"consignee":"小明","mobile":"18845678918","address":"辽宁省 沈阳市 皇姑区 巴啦啦小能量","message":"","goodsPrice":79,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":87,"actualPrice":87,"comments":0,"endTime":"2021-04-07 01:17:21","addTime":"2021-04-07 00:43:50","updateTime":"2021-04-07 01:17:21","deleted":false},{"id":35,"userId":1,"orderSn":"20210405770832","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":316,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":316,"actualPrice":316,"comments":0,"endTime":"2021-04-05 22:47:21","addTime":"2021-04-05 22:04:26","updateTime":"2021-04-05 22:47:21","deleted":false},{"id":34,"userId":1,"orderSn":"20210405594812","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":3999,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":3999,"actualPrice":3999,"comments":0,"endTime":"2021-04-05 22:47:21","addTime":"2021-04-05 22:00:20","updateTime":"2021-04-05 22:47:21","deleted":false},{"id":33,"userId":1,"orderSn":"20210330744678","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":79,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":87,"actualPrice":87,"comments":0,"endTime":"2021-03-30 15:17:21","addTime":"2021-03-30 14:25:05","updateTime":"2021-03-30 15:17:21","deleted":false},{"id":32,"userId":1,"orderSn":"20210328029454","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":7998,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":7998,"actualPrice":7998,"comments":0,"endTime":"2021-03-28 17:47:20","addTime":"2021-03-28 17:08:31","updateTime":"2021-03-28 17:47:20","deleted":false},{"id":31,"userId":1,"orderSn":"20210326640201","orderStatus":102,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"111","goodsPrice":36,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":44,"actualPrice":44,"comments":0,"endTime":"2021-03-26 13:45:57","addTime":"2021-03-26 13:45:43","updateTime":"2021-03-26 13:45:57","deleted":false},{"id":30,"userId":1,"orderSn":"20210326692015","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":56,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":64,"actualPrice":64,"comments":0,"endTime":"2021-03-26 14:17:20","addTime":"2021-03-26 13:43:51","updateTime":"2021-03-26 14:17:20","deleted":false},{"id":29,"userId":1,"orderSn":"20210326821690","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":298,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":298,"actualPrice":298,"comments":0,"endTime":"2021-03-26 14:17:20","addTime":"2021-03-26 13:43:24","updateTime":"2021-03-26 14:17:20","deleted":false},{"id":28,"userId":1,"orderSn":"20210319622365","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"aaa","goodsPrice":11997,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":11997,"actualPrice":11997,"comments":0,"endTime":"2021-03-19 22:47:20","addTime":"2021-03-19 21:59:09","updateTime":"2021-03-19 22:47:20","deleted":false},{"id":27,"userId":1,"orderSn":"20210318510180","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":79,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":87,"actualPrice":87,"comments":0,"endTime":"2021-03-18 14:47:19","addTime":"2021-03-18 14:00:33","updateTime":"2021-03-18 14:47:19","deleted":false},{"id":26,"userId":1,"orderSn":"20210318640133","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":3999,"freightPrice":0,"couponPrice":5,"integralPrice":0,"grouponPrice":0,"orderPrice":3994,"actualPrice":3994,"comments":0,"endTime":"2021-03-18 09:47:19","addTime":"2021-03-18 08:52:20","updateTime":"2021-03-18 09:47:19","deleted":false},{"id":25,"userId":1,"orderSn":"20210317040944","orderStatus":103,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":7998,"freightPrice":0,"couponPrice":10,"integralPrice":0,"grouponPrice":0,"orderPrice":7988,"actualPrice":7988,"comments":0,"endTime":"2021-03-17 23:47:19","addTime":"2021-03-17 22:56:50","updateTime":"2021-03-17 23:47:19","deleted":false},{"id":24,"userId":1,"orderSn":"20210303274794","orderStatus":102,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":1047,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":1047,"actualPrice":1047,"comments":0,"endTime":"2021-03-03 20:54:10","addTime":"2021-03-03 20:54:01","updateTime":"2021-03-03 20:54:10","deleted":false},{"id":23,"userId":1,"orderSn":"20210303548374","orderStatus":102,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":39,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":47,"actualPrice":47,"comments":0,"endTime":"2021-03-03 20:52:19","addTime":"2021-03-03 20:52:12","updateTime":"2021-03-03 20:52:19","deleted":false},{"id":22,"userId":1,"orderSn":"20210303492623","orderStatus":102,"consignee":"张松","mobile":"18566549962","address":"安徽省 合肥市 瑶海区 碧桂园","message":"","goodsPrice":11997,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":11997,"actualPrice":11997,"comments":0,"endTime":"2021-03-03 20:53:41","addTime":"2021-03-03 20:47:09","updateTime":"2021-03-03 20:53:41","deleted":false},{"id":21,"userId":1,"orderSn":"20210303977689","orderStatus":102,"consignee":"松哥","mobile":"15976753826","address":"湖北省 武汉市 洪山区 花山街道软件新城2期","message":"","goodsPrice":72,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":80,"actualPrice":80,"comments":0,"endTime":"2021-03-03 20:53:45","addTime":"2021-03-03 20:44:13","updateTime":"2021-03-03 20:53:45","deleted":false},{"id":20,"userId":3,"orderSn":"20200427192143","orderStatus":202,"consignee":"刘师傅","mobile":"18675730010","address":"湖北省 武汉市 洪山区 花山街道软件新城2期","message":"","goodsPrice":599,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":599,"actualPrice":599,"comments":0,"addTime":"2020-04-27 22:11:07","updateTime":"2020-04-27 22:11:07","deleted":false},{"id":19,"userId":3,"orderSn":"20200427131236","orderStatus":103,"consignee":"刘师傅","mobile":"18675730010","address":"湖北省 武汉市 洪山区 花山街道软件新城2期","message":"","goodsPrice":899,"freightPrice":0,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":899,"actualPrice":899,"comments":0,"addTime":"2020-04-27 22:10:57","updateTime":"2020-04-27 22:10:57","deleted":false},{"id":18,"userId":3,"orderSn":"20200427140945","orderStatus":102,"consignee":"刘师傅","mobile":"18675730010","address":"湖北省 武汉市 洪山区 花山街道软件新城2期","message":"","goodsPrice":79,"freightPrice":8,"couponPrice":0,"integralPrice":0,"grouponPrice":0,"orderPrice":87,"actualPrice":87,"comments":0,"addTime":"2020-04-27 22:10:47","updateTime":"2020-04-27 22:10:47","deleted":false}]
     */

    private long total;
    private List<ItemsBean> items;

    public OrderListDataVo(long total, List<ItemsBean> items) {
        this.total = total;
        this.items = items;
    }

    public OrderListDataVo() {
    }


    @Data
    public static class ItemsBean {
        /**
         * id : 37
         * userId : 1
         * orderSn : 20210410822662
         * orderStatus : 103
         * consignee : 小明
         * mobile : 18845678918
         * address : 辽宁省 沈阳市 皇姑区 巴啦啦小能量
         * message :
         * goodsPrice : 99.0
         * freightPrice : 0.0
         * couponPrice : 0.0
         * integralPrice : 0.0
         * grouponPrice : 0.0
         * orderPrice : 99.0
         * actualPrice : 99.0
         * comments : 0
         * endTime : 2021-04-10 10:55:52
         * addTime : 2021-04-10 10:10:32
         * updateTime : 2021-04-10 10:55:52
         * deleted : false
         */

        private Integer id;
        private Integer userId;
        private String orderSn;
        private Short orderStatus;
        private String consignee;
        private String mobile;
        private String address;
        private String message;
        private BigDecimal goodsPrice;
        private BigDecimal freightPrice;
        private BigDecimal couponPrice;
        private BigDecimal integralPrice;
        private BigDecimal grouponPrice;
        private BigDecimal orderPrice;
        private BigDecimal actualPrice;
        @DateTimeFormat
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date payTime;

        private String shipSn;

        private String shipChannel;

        private Short comments;
        @DateTimeFormat
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date endTime;
        @DateTimeFormat
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date addTime;
        @DateTimeFormat
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;
        private boolean deleted;



    }
}
